Intelligent and automated code deployment

ABSTRACT

Exemplary method embodiments for deploying code in a computing sysplex environment are provided. In one embodiment, by way of example only, a system-wide trending mechanism is applied. At least one of an idle time and a low Central Processing Unit (CPU) utilization time of one system in the sysplex environment is matched with an estimated deployment time obtained from at least one of a latest measured period of time and a calculated time trend. A system-wide coordinating mechanism is applied. A staggered code deployment operation is recommended for at least one node of the system at an optimum system time generated from the matching. Data obtained from the code deployment operation is recorded, including a new latest measured period of time. The data is used to generate an updated time trend.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a Continuation of U.S. patent application Ser. No. 13/345,594, filed on Jan. 6, 2012.

FIELD OF THE INVENTION

The present invention relates generally to computers, and more particularly, to implementing code deployment operations in a computing environment.

DESCRIPTION OF THE RELATED ART

In today's society, computer systems are commonplace. Computer systems may be found in the workplace, at home, or at school. Computer systems may include data storage systems, or disk storage systems, to process and store data. In recent years, both software and hardware technologies have experienced amazing advancement, as well as the need to accommodate increasing amounts of data processed by such technologies. As a result, various interconnection data processing devices are configured in so-called “sysplex” environments, where interconnected computer systems accommodate, store, and otherwise process information.

SUMMARY OF THE DESCRIBED EMBODIMENTS

With increasing demand for faster, more powerful and more efficient ways to store information, optimization of storage technologies is becoming a key challenge. Included in this challenge is a need to optimize the way that computer code, or the instructions for implementing software applications and/or operating the hardware thereby associated, is deployed to the various computer sysplexes.

Accordingly, and in view of the foregoing, exemplary embodiments for deploying code in a computing sysplex environment are provided. In one embodiment, by way of example only, a system-wide trending mechanism is applied. At least one of an idle time and a low Central Processing Unit (CPU) utilization time of one system in the sysplex environment is matched with an estimated deployment time obtained from at least one of a latest measured period of time and a calculated time trend. A system-wide coordination mechanism is applied. A staggered code deployment operation is recommended for at least one node of the system at an optimum system time generated from the matching. Data obtained from the code deployment operation is recorded, including a new latest measured period of time. The data is used to generate an updated time trend.

In addition to the foregoing exemplary method embodiment, other exemplary embodiments are provided and supply related advantages.

BRIEF DESCRIPTION OF THE DRAWINGS

In order that the advantages of the invention will be readily understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings. Understanding that these drawings depict embodiments of the invention and are not therefore to be considered to be limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:

FIG. 1 illustrates an exemplary computer sysplex environment in which aspects of the present invention may be realized;

FIG. 2 is a block diagram showing an exemplary hardware structure of a data storage system in a computer system in which aspects of the present invention may be realized;

FIG. 3 is a block diagram illustration of multi-site bi-directional data replication, again in which aspects of the present invention may be implemented;

FIG. 4 is a block diagram illustration of backup, replication, and cleanup operations as performed by a multi-site sysplex computing environment, again in which aspects of the present invention may be realized;

FIG. 5 is an exemplary sample activity history file;

FIG. 6 illustrates exemplary activity history tracking;

FIG. 7 is a flow chart diagram of an exemplary method for trend identification in which aspects of the present invention may be realized; and

FIG. 8 is an additional flow chart diagram of an exemplary method for code deployment in accordance with one embodiment of the present invention.

DETAILED DESCRIPTION OF CERTAIN EMBODIMENTS

Enterprise computing environments may include sysplex architectures such as the ProtecTIER® backup/restore/replication architecture distributed by International Business Machines Corporation (“IBM®”). As shown in an exemplary embodiment presented in FIG. 1, following, an exemplary architecture 100 may include a customer site 102 having multiple ProtecTIER® DD4 gateway configurations (e.g., systems 104, 110, 112, and 114), and multiple ProtecTIER® AP1 appliance configurations (e.g., systems 106 and 108). Each configuration runs the ProtecTIER® application software and specific firmware levels for the hardware components contained in each respective configuration.

Users, such as customers, may have multiple site, sysplex-type environments described in FIG. 1, where a first system at Site A replicate, and/or otherwise process data to another system at one or more remote sites in a bi-directional manner. Each system in the sysplex architecture has a limited amount of resources and, in one exemplary embodiment, support the following activities: receiving backup data from a host, restoring backup data from a host, replicating data to a remote system, receiving replication from a remote system, maintaining the logical ProtecTIER storage fragmentation, as well as support routine maintenance activities such as performing code and firmware upgrades.

The following illustrated embodiments serve to address various challenges pertaining to streamlining the code/firmware upgrade process between multiple systems that span, for example, multiple sites. For example, today users must visit a support website and manually download new code images to be applied to their respective systems, and must manually apply the code upgrades to each system. Typically, while performing this action, a service outage must be scheduled at a time that limits impact to production activity, such as backing up new production data, replicating production data to a remote site, etc., in order to ensure backup windows are met.

Such activities place burdens on customers as they have to plan the code upgrade activity and is prone to human error. For example, a customer may download the wrong package or apply the wrong package to a system, or may schedule an upgrade during a time of peak production utilization. This process can be tedious and not user friendly and is potentially worsened as the sysplex becomes larger or more interconnected as more systems and additional complexity must be managed.

One possible solution to this problem is the code upgrade procedure implemented for IBM® Scale Out Network Attached Storage (SONAS) systems. In this procedure, a code upgrade image is loaded onto a management node and an algorithm performs a ‘rolling code upgrade’ by analyzing the physical characteristics of the SONAS system, taking into account the built in error recovery of the system architecture. For example, the method utilizes the failover capabilities of a component referred to as Clustered Trivial Databases (CTDB) to perform code upgrades in a manner that allows customers to still access their data throughout the code upgrade process. This code upgrade process, does not take into account resource utilization, does not take into account multiple SONAS systems that may be at the same or remote locations and does not automatically determine what code images are needed and automatically download from a centralized service center, however.

As such a novel solution is needed that addresses the following shortcomings of the current state of the art. The solution should address the following elements:

-   -   (1) Learning the optimal window (time) to perform code upgrades         on multiple systems taking into account a multitude of         production activities such as backup/restore, replication such         that impact to production activities is minimized.     -   (2) Automatically coordinating code upgrades among multiple         systems at the same or different customer sites.     -   (3) Automatically identifying, downloading, and deploying new         code and firmware images and fixes from a centralized support         center, taking into account the urgency of each fix.

The illustrated embodiments, for example, serve to automatically learn backup, restore, disk maintenance (defrag), and replication utilization for multiple systems in a sysplex, recommend an upgrade schedule to the customer based on their specific environment and usage, and download and notify users of new code releases and firmware updates from a centralized service center. This is accomplished by automatically detecting new firmware and software updates from an external centralized code repository, determining idle time for each system in a customer sysplex and based on the estimated time to perform the upgrade coupled with the idle time for each system, provides a recommended upgrade strategy that minimizes the impact to production activities. Customers may elect to allow the code upgrade algorithms to automatically apply updates, providing a truly automated, intelligent lights out implementation or customers may elect to review, modify and approve the derived code upgrade strategy for all systems in their sysplex.

One aspect of the illustrated embodiments involves an ability to dynamically identify/learn free windows by trending system activity over time and making educated predictions to future free windows via code automation. Users may also assign different priorities to different production tasks in a time period, which can then be used to determine the optimal code, upgrade schedule based on production task priorities.

In this manner, the illustrated embodiments apply system-wide threshold based trending mechanisms adapted to backup, restore, and replication for disaster recovery environments. In one such embodiment, a trending algorithm identifies backup, restore, and replication usage according to idle time on the same day that spans consecutive previous weeks. The trending algorithm may incorporate a forward-looking histogram that uses the latest system activity as the precedence and attempts to match previous system activity to the latest system activity. In addition, the illustrated embodiments provide system-wide coordination of activities based on predicted idle times as multiple nodes in a system share resources among each other due to activities such as replication. To this end, in one embodiment, a system-wide staggered code update schedule is applied to prevent all nodes from being upgraded at the same time, even if they have the same idle time windows. In addition, the schedule is optimized to provide the fastest point in time where code upgrades can be completed for all nodes in a particular system by identifying the earliest code upgrade window and subsequent non-overlapping code upgrade windows.

The illustrated embodiments track code upgrade failures in a system, and if number of failures encountered when upgrading a particular code image crosses a configurable threshold, refrain from upgrades on additional systems. Additionally, the illustrated embodiments, enable tight integration with a backup application to define when code upgrades can take place, enable users to define priority of runtime tasks such that if runtime tasks conflict with code upgrades, the upgrades can be automatically scheduled based on runtime task priority/importance, and provide a recommended system wide upgrade schedule to the user and allow the user to modify the schedule and allow the invention to automatically upgrade the nodes in the system or the user may use the schedule as a guide to manually perform the upgrades.

The illustrated embodiments introduce several modules that work in conjunction to provide intelligent, workload optimized, automated code upgrade scheduling and deployment, and are depicted in FIG. 2, following:

-   -   (1) Activity tracking module—Tracks the type of activity,         start/stop times, resource utilization (disk, CPU, network,         etc.), priority (optional), and keeps a historical record of         activity on a particular system.     -   (2) Code download module—Responsible for identifying new code         images available from the centralized service point based on the         type of system(s) at the customer site and their current code         levels.     -   (3) Scheduling module—Contains built in intelligence that uses         the history file provided by the activity tracking module on         multiple systems to identify trends and predict system idle         time. After building a trend of idle times the algorithm         determines if the number of consecutive idle times meets pattern         identification criteria and filters out idle times that do not         match. The module then takes into account the code upgrade         images that are needed along with a time estimation of how long         each upgrade is expected to take from the code download module         and derives an upgrade schedule for each unique customer         environment.     -   (4) User interface module—Provides a user interface for         configuration and monitoring associated with automated code         upgrade.     -   (5) Deployment module—Responsible for propagating code images to         multiple systems at the customer site and initiates and manages         the code upgrades according to the schedule provided by the         scheduling module. Monitors progress of code upgrades by         tracking the actual code upgrade duration and detects code         upgrade failures. This is provided as feedback to the scheduling         module such that the scheduling module can dynamically adjust         the upgrade strategy according to fluctuations in the actual         code upgrade timing in order to further minimize impact to         production activities and also to account for propagating bad         code if code upgrade failures are detected.     -   (6) System configuration module—An XML file is provided that         contains configuration information that the invention uses. This         contains information such as the time interval at which to track         activity, the threshold of consecutive idle times at which the         algorithm determines is an idle pattern.

FIG. 2 is an exemplary block diagram showing a hardware structure of an exemplary data storage system 200, in which elements of the present invention may be implemented. In one embodiment, a customer site 102 (FIG. 1) may include various elements of FIG. 2. One of ordinary skill in the art will appreciate, however, that the various components of FIG. 2 may vary according to a particular configuration and/or application. Host computers 210, 220, 225, are shown, each acting as a central processing unit for performing data processing as part of a data storage system 200. The hosts (physical or virtual devices), 210, 220, and 225 may be one or more new physical devices or logical devices to accomplish the purposes of the present invention in the data storage system 200. A network connection 260 may be a fibre channel fabric, a fibre channel point to point link, a fibre channel over ethernet fabric or point to point link, a FICON or ESCON I/O interface, any other I/O interface type, a wireless network, a wired network, a LAN, a WAN, heterogeneous, homogeneous, public (i.e. the Internet), private, or any combination thereof. The hosts, 210, 220, and 225 may be local or distributed among one or more locations and may be equipped with any type of fabric (or fabric channel) (not shown in FIG. 2) or network adapter 260 to the storage controller 240, such as Fibre channel, FICON, ESCON, Ethernet, fiber optic, wireless, or coaxial adapters. Data storage system 200 is accordingly equipped with a suitable fabric (not shown in FIG. 2) or network adapter 260 to communicate. Data storage system 200 is depicted in FIG. 2 comprising storage controller 240 and storage 230.

To facilitate a clearer understanding of the methods described herein, storage controller 240 is shown in FIG. 2 as a single processing unit, including a microprocessor 242, system memory 243 and nonvolatile storage (“NVS”) 216, which will be described in more detail below. It is noted that in some embodiments, storage controller 240 is comprised of multiple processing units, each with their own processor complex and system memory, and interconnected by a dedicated network within data storage system 200. Storage 230 may be comprised of one or more storage devices, such as storage arrays, which are connected to storage controller 240 by a storage network.

In some embodiments, the devices included in storage 230 may be connected in a loop architecture. Storage controller 240 manages storage 230 and facilitates the processing of write and read requests intended for storage 230. The system memory 243 of storage controller 240 stores program instructions and data which the processor 242 may access for executing functions and method steps associated with managing storage 230 and executing various functionality relating to code deployment according to the illustrated embodiments. In one embodiment, system memory 243 includes, is associated, or is in communication with the operation software 250 for performing the code deployment functionality described below, including the methods and operations described herein. As shown in FIG. 2, system memory 243 may also include or be in communication with a cache 245 for storage 230, also referred to herein as a “cache memory”, for buffering “write data” and “read data”, which respectively refer to write/read requests and their associated data. In one embodiment, cache 245 is allocated in a device external to system memory 243, yet remains accessible by microprocessor 242 and may serve to provide additional security against data loss, in addition to carrying out the operations as described herein.

In some embodiments, cache 245 is implemented with a volatile memory and non-volatile memory and coupled to microprocessor 242 via a local bus (not shown in FIG. 2) for enhanced performance of data storage system 200. The NVS 216 included in data storage controller is accessible by microprocessor 242 and serves to provide additional support for operations and execution of the present invention as described in other figures. The NVS 216, may also referred to as a “persistent” cache, or “cache memory” and is implemented with nonvolatile memory that may or may not utilize external power to retain data stored therein. The NVS may be stored in and with the cache 245 for any purposes suited to accomplish the objectives of the present invention. In some embodiments, a backup power source (not shown in FIG. 2), such as a battery, supplies NVS 216 with sufficient power to retain the data stored therein in case of power loss to data storage system 200. In certain embodiments, the capacity of NVS 216 is less than or equal to the total capacity of cache 245.

Storage 230 may be physically comprised of one or more storage devices, such as storage arrays. A storage array is a logical grouping of individual storage devices, such as a hard disk. In certain embodiments, storage 230 is comprised of a JBOD (Just a Bunch of Disks) array or a RAID (Redundant Array of Independent Disks) array. A collection of physical storage arrays may be further combined to form a rank, which dissociates the physical storage from the logical configuration. The storage space in a rank may be allocated into logical volumes, which define the storage location specified in a write/read request.

In one embodiment, by way of example only, the storage system as shown in FIG. 2 may include a logical volume, or simply “volume,” may have different kinds of allocations. Storage 230 a, 230 b and 230 n are shown as ranks in data storage system 200, and are referred to herein as rank 230 a, 230 b and 230 n. Ranks may be local to data storage system 200, or may be located at a physically remote location. Rank 230 a is shown configured with two entire volumes, 234 and 236, as well as one partial volume 232 a. Rank 230 b is shown with another partial volume 232 b. Thus volume 232 is allocated across ranks 230 a and 230 b. Rank 230 n is shown as being fully allocated to volume 238—that is, rank 230 n refers to the entire physical storage for volume 238. From the above examples, it will be appreciated that a rank may be configured to include one or more partial and/or entire volumes. Volumes and ranks may further be divided into so-called “tracks,” which represent a fixed block of storage. A track is therefore associated with a given volume and may be given a given rank.

The storage controller 240 may include the specialized modules previously described, such as activity tracking module 252, scheduling module 254, code deployment module 256, user interface module 258, system configuration module 260, and code download module 262 as shown. The modules 252, 254, 256, 258, 260, and 262 may work in conjunction with each and every component of the storage controller 240, the hosts 210, 220, 225, and storage devices 230. Modules 252, 254, 256, 258, 260, and 262 may be structurally one complete module or may be associated and/or included with other individual modules. The modules 252, 254, 256, 258, 260, and 262 may also be located in the cache 245 or other components, as one of ordinary skill in the art will appreciate.

In the depicted embodiment, storage controller 240 includes a control switch 241 for controlling the fiber channel protocol to the host computers 210, 220, 225, a microprocessor 242 for controlling all the storage controller 240, a nonvolatile control memory 243 for storing a microprogram (operation software) 250 for controlling the operation of storage controller 240, cache 245 for temporarily storing (buffering) data, and buffers 244 for assisting the cache 245 to read and write data, a control switch 241 for controlling a protocol to control data transfer to or from the storage devices 230, and modules 252, 254, 256, 258, and 260. Multiple buffers 244 may be implemented with the present invention to assist with the operations as described herein.

In one embodiment, the host computers or one or more physical or virtual devices, 210, 220, 225 and the storage controller 240 are connected through a network adaptor (this could be a fibre channel) 260 as an interface i.e., via a switch called “fabric.” In one embodiment, the operation of the system shown in FIG. 2 will be described. The microprocessor 242 may control the memory 243 to store command information from the host device (physical or virtual) 210 and information for identifying the host device (physical or virtual) 210. The control switch 241, the buffers 244, the cache 245, the operating software 250, the microprocessor 242, memory 243, NVS 216, modules 252, 254, 256, 258, 260, and 262 are in communication with each other and may be separate or one individual component(s). Also, several, if not all of the components, such as the operation software 250 may be included with the memory 243. Each of the components within the devices shown may be linked together and may be in communication with each other for purposes suited to the present invention.

One exemplary embodiment of the present invention comprises three customer sites (Sites A, B, C), where each site contains one DD4 cluster as shown in FIG. 1, previously. FIG. 3, following, illustrates such an exemplary embodiment 300. Sites, 302, 304, and 306 (A, B, and C) are located remotely from one another and perform bi-directional replication operations as shown. Specifically, Customer site A receives local backups and replicates the locally backed up data to customer sites B and C. Customer site B receives local backups and replicates the locally backed up data to customer sites A and C. Customer site C receives local backups and replicates the locally backed up data to customer sites A and B.

Turning now to FIG. 4, sites 302, 304, and 306 (A, B, and C) are shown performing exemplary replication, backup, and cleanup operations in conjunction with hosts 210, 220, and 225 as will be further described. From time T=0-T=7, site A receives local backups, replicates to sites B and C and also runs a disk cleanup process. During time T=7-T=8 site A is idle but sites B and C are still busy running a disk cleanup activity. During time T=8-T=9, sites A, B, and C are all idle. During time T=9-T=18, site B receives local backups, replicates to sites A and C and also runs a disk cleanup process. During time T=18-T=22 site C receives local backups, replicates to sites A and B and also runs a disk cleanup process. During time T=22-T=23 sites A and C are idle but site B is running a cleanup process. During time T=23-T=0 all sites are idle.

Referring briefly to FIG. 2, the activity tracking module 252 may run as a daemon on each system monitoring system activity and saving output to a history file over an extended period of time. FIG. 5, following provides a sample of the type of information tracked and stored in the history file. The granularity of the tracking is configurable in the system configuration module 260 (again, FIG. 2). For example the system configuration module 260 may set the tracking period to every 15 minutes. A CLI is provided to update the system configuration module 260 such that the scheduling module 254 is notified of the configuration change, causing it to reread the configuration information and adjust the tracking algorithm accordingly.

FIG. 6, following, illustrates an example of an activity history file for one day (Monday) on each system (files 602, 604, and 606) according to the embodiment and use case described in FIG. 4, previously. It should be noted that the entire content of the history file as indicated in FIG. 6 applies to FIG. 5 but is not shown in its entirety.

According to one exemplary embodiment the code download module 262 (again, FIG. 2) determines that each customer site is running the 2.5 ProtecTIER® software, but a critical fix is available from the support center (denoted as 2.5.1). After determining that new code images are available, the code download module 262 downloads the image from a support center to the master/coordinating node, which in this case is site A.

After downloading the code image from the support center, the code download module 262 notifies the scheduling module 254 of the new code image for each site and the estimated upgrade time of 45 minutes. In one exemplary embodiment, there is a centralized scheduling module running on site A that calls the activity tracking daemons on each system asking for the activity history. The scheduling module 254 scans the activity history for each system and builds a site wide view of idle time by applying a trending algorithm adapted to backup and restore environments. Typically in backup and restore environments customers will perform some type of daily backup that may be a full or incremental and may also replicate the backed up data to one or more remote sites. This activity can be tracked over time and trends can be identified. For example, every night a customer may perform backups+replication for 5 hours. A trend may be established over as little as two consecutive instances of activity during the same time period. In my invention tracking is established from day 1 such that by the time a code upgrade is available, sufficient data pertaining to system utilization has been collected and potential code upgrade windows that minimize impact to production activities may be established.

Specifically, the exemplary learning algorithm 700 described in FIG. 7, following, attempts to identify the backup/restore/replication usage according to idle time on the same day that spans consecutive previous weeks. At step 701 the scheduling module algorithm starts. At step 703 the scheduling algorithm gets the current history file from site A's DD4 cluster via the activity tracking module.

At step 705 the scheduling algorithm 700 determines the weekly idle time matches. For example, the algorithm 700 will compare the history file of the current Monday to the previous Monday and identify matching idle times. If a match is found between the current week and the previous week, the scheduling module saves this information to an idle time table. The algorithm 700 then looks at the idle time table results comparing the matching idle time frames identified between the current Monday and the previous Monday to the idle times from the same day two weeks ago. This builds a history of consecutive matching idle times. This history of consecutive matching idle times may be embodied in a histogram, for example. The algorithm 700 then proceeds to the next day of the current week and compares this to the previous week(s) until all days are evaluated. For example, a history file for site A may contain 6 weeks worth of data and that the site A activity history file as indicated in FIG. 6, previously, is consistent for the last 5 weeks but was not consistent 6 weeks ago for time T=7-9 and T=22-0. The algorithm 700 then identifies 4 instances of matches for idle times T=7-9 and 4 instances of matches for idle times T=22-0. In an alternative example, the idle times of T=7-9 and T=22-0 for site A are consistent for 4 out of the 5 weeks except that in the third previous week the idle times are not consistent. In that case, the algorithm 700 only considers two instances of matches (current week and 1st previous week, 2nd previous week) even though the current week matches with the 4th previous week.

Returning to the depicted embodiment, in step 707 the algorithm 700 looks at the idle time table and looks to see if the number of matches for each matching time period is greater than or equal to the match threshold contained in the system configuration XML file and also looks to see if the duration of each matching time period is greater than or equal to the estimated code upgrade time. If both conditions are not met, the matching idle time is no longer considered valid and is removed from the idle time table. For example, let's assume that the threshold is set to 3 and since the code upgrade window is 45 minutes, idle times T=7-9 and T=22-0 remain in the idle time table as valid idle windows at which code upgrades could be performed.

At step 711, the algorithm turns focus to site B since the code download module indicated that the DD4 cluster at site B requires an upgrade and proceeds to obtain the current history file as indicated in step 103. Referring to the site B history file in FIG. 6, the current week indicates time T=8-9 and T=23-0 as idle. For the sake of example, assume that these idle times also pertain to Monday and are repeated for 4 consecutive weeks. Step 705 detects these matches using the process described above and the 3 matches of idle times T=8-9 and T=23-0 satisfy the checks at step 707.

Upon returning to step 111, the algorithm turns focus to site C and obtains the current history file (step 103). Referring to the site C history file in FIG. 5, site C is idle at times T=8-9, T=22-0. Again, for the sake of example let's assume this is also Monday for 4 consecutive weeks. Step 105 detects these matches using the process described above and the 4 matches of idle times T=8-9 and T=22-0 satisfy the checks at step 107.

As all systems across multiple sites have been analyzed, the algorithm 700 moves to step 713 with the following information in the idle time table:

T=7-8, site A idle T=8-9, site A, site B, site C idle T=22—site A, site C idle T=23, site A, site B, site C idle

At step 713 the algorithm attempts to derive a staggered code upgrade schedule to allow for all nodes to not be upgraded at the same time, even if they have the same idle window. This is to prevent situations where a bad code image is loaded onto multiple machines at once, placing all customer machines into a failed state. Additionally step 713 is optimized to complete code upgrades as fast as possible by finding the earliest code upgrade window and the subsequent non-consecutive code upgrade windows. In one embodiment, the algorithm identifies that time T=7 is the earliest idle time among all systems and applies to site A. Next step 113 identifies time T=8 as the next available time for sites B and C and also identifies time T=22 as idle for site C. As a result, at step 715 the algorithm derives the following code upgrade window assignments:

T=7, site A upgrade T=8, site B upgrade T=22 site C upgrade

If at step 715 the algorithm 700 is not able to assign an upgrade window to a particular system, the user/customer is notified of this and may manually assign an upgrade window via the user interface module.

In an alternate embodiment, step 713 may optimize to perform code upgrades on all and/or as many systems in parallel as possible. This would result in in an upgrade schedule of performing upgrades at time T=8 on sites A, B and C.

At step 717 the scheduling module calls the appropriate code deployment module. For example, according to one embodiment, the scheduling module calls the deployment module at site A at T-7. The code deployment module starts the code upgrade and monitors the progress of the code upgrade and ensures that the upgrade was successful, the system is operational, and tracks the total time required to complete the code upgrade. This information is reported to the scheduling module where the scheduling module may adjust the upgrade schedule according to the outcome of the code upgrade on site A. For example, if the code upgrade on site A failed, the scheduling module may look at the XML configuration file and determine if the code upgrade failure exceeds a node upgrade failure threshold. If it does, it may refrain from doing future code upgrades with this particular code image. If the time to complete the upgrade was originally estimated at 45 minutes but took an hour and a half, the scheduling module may recalculate a different upgrade schedule based on the time to complete the code upgrade. In this example, site B was scheduled to be upgraded at time T=8-9 but since the actual time to complete the upgrade is longer than an hour, upgrading during that time frame would impact production activity. Instead, the scheduling module may start the next upgrade on site C at time T=22-0 since there is a two hour window available and perform the code upgrade on site B the next day when there is a 2 hour code upgrade time available.

After calling all code deployment modules at the appropriate time, the algorithm ends at step 719.

In an alternate embodiment, the mechanisms of the illustrated embodiments may tightly integrate with the backup application such that when customers schedule backup activities through their backup application (such as Tivoli® Storage Manager or TSM), this information may be relayed to the mechanisms, allowing the invention to utilize the automated scheduling and execution of code upgrades on multiple systems that may span multiple sites.

The mechanisms of the illustrated embodiments may also allow users to configure the priority/importance of tasks through the user interface module such that the scheduling module determines when to perform upgrades based on the priority of tasks during a given time frame. For example, site A might not have any free time but may have low priority activity running from time T=0-4, medium priority tasks running from time T=4-22 and high priority tasks running from time T=22-0. The scheduling module would then identify time T=0 to start the code upgrade.

Alternatively, the scheduling module may determine the optimal time to perform an upgrade based on system resource utilization. For example, CPU, network, and disk utilization might be lowest at time T=3-5 and the scheduling module may identify time T=3 to initiate an upgrade. This may also be employed as a second level trend identification approach only if there are no clear idle times identified.

Last, the mechanisms of the illustrated embodiments may provide a recommended upgrade schedule to the customer and the customer can review and modify the recommended schedule as needed through the user interface module. After modifying the upgrade schedule the customer may allow the invention to automatically apply the code upgrades according to the defined schedule or the customer may simply use the recommended schedule as a guide for the customers to manually perform code upgrades.

FIG. 8, following, is a flow chart of an exemplary method 800 for performing code deployment functionality according to the mechanisms of the illustrated embodiments. Method 800 begins (step 802). At least one of an idle time and a low Central Processing Unit (CPU) utilization time of one system in the sysplex environment is matched with an estimated deployment time obtained from at least one of a latest measured period of time and a calculated time trend (step 804). A code deployment operation is recommended for the system at a system time generated from the matching (step 806). Data obtained from the code deployment operation is recorded, including a new latest measured period of time. The data is used to generate an updated time trend (step 808). The method 800 then ends (step 810).

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that may contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

Aspects of the present invention are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer readable medium that may direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks. The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagram in the above figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block might occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, may be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

While one or more embodiments of the present invention have been illustrated in detail, one of ordinary skill in the art will appreciate that modifications and adaptations to those embodiments may be made without departing from the scope of the present invention as set forth in the following claims. 

What is claimed is:
 1. A method for deploying code in a computing sysplex environment by a processor, comprising: applying a system-wide trending mechanism, including matching at least one of an idle time and a low Central Processing Unit (CPU) utilization time of one system in the sysplex environment with an estimated deployment time obtained from at least one of a latest measured period of time and a calculated time trend; applying a system-wide coordination mechanism, including recommending performing a staggered code deployment operation for at least one node of the system at an optimum system time generated from the matching; and recording data obtained from the code deployment operation, including recording a new latest measured period of time, the data used to generate an updated time trend.
 2. The method of claim 1, wherein the new latest measured period of time and the updated time trend is utilized in a subsequent matching operation for another system in the sysplex environment for a subsequent code deployment operation.
 3. The method of claim 1, further including establishing a predetermined tracking period for the one system for one of a calculated and specified time interval, wherein the matching is performed at least once during the predetermined tracking period.
 4. The method of claim 1, further including obtaining a current history file, the current history file including the latest measured period of time.
 5. The method of claim 1, further including configuring the current history file as at least one of an Extended Markup Language (XML) file and at least a portion of a histogram for use by the system-wide trending mechanism.
 6. The method of claim 1, further including registering at least one priority for a production task in the code deployment operation, wherein the at least one priority is used in conjunction with the matching to obtain the recommendation.
 7. The method of claim 1, further including downloading code images to a centralized service point for subsequent deployment to the one system in the sysplex environment. 